describe('App.DepositAccount', function() {
    var account;

    it("displayableObject",function(){
        var account = App.DepositAccount.create({
            "accountType": "Deposit Account",
            "accountNumber": "30606620475",
            "accountName": "AccountName1",
            "issueDate":"Monday, 27 August 0006",
            "principal":1235678.12,
            "lineAmount": 20,
            "interestRate":15,
            "interestAtMaturity":15000,
            "currentMaturityDate":"Thursday, 30 August 0006",
            "maturityAmount":135679.20
        });

        var expectedOutput =
            [{"value":[{"key":"Account Type","value":"Deposit Account"},{"key":"Account Number","value":"30606620475"},{"key":"Account Title","value":"AccountName1"},{"key":"Start Date","value":"Sunday, 27 August 2006"},{"key":"Principle Amount","value":{"amount":1235678.12},"isAmount":true},{"key":"Amount Under Lien","value":{"amount":20},"isAmount":true},{"key":"Interest Rate %p.a.","value":15},{"key":"Interest Amount","value":{"amount":15000},"isAmount":true},{"key":"Maturity","value":"Wednesday, 30 August 2006"},{"key":"Value","value":{"amount":135679.2},"isAmount":true}]}];

        expect(JSON.stringify(account.get('displayableObject'))).toEqual(JSON.stringify(expectedOutput));
    });

});